package com.hangzhou.xyj.model.type;

/**
 * Created by yaohuix on 2016/3/25  11:08
 * <p/>
 */
public enum ECorrectType {
    //
    UNKNOWN(0),
    //
    NAME(1),
    //
    HOBBY(2),
    //
    GENDER(3),
    //
    TEACHER(4),
    //
    SIGN(5),
    //
    AUTHEN(6),
    //
    ZONE(7),
    //
    FOCUS_STATE_TRUE(8),
    //
    FOCUS_STATE_FALSE(9),
    //修改头像
    HEAD_IMG(10),
    //选择剧种
    CHOOSE(11);

    int value;

    ECorrectType(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static ECorrectType valueOf(int value) {
        switch (value) {
            case 1:
                return NAME;
            case 2:
                return HOBBY;
            case 3:
                return GENDER;
            case 4:
                return TEACHER;
            case 5:
                return SIGN;
            case 6:
                return AUTHEN;
            case 7:
                return ZONE;
            case 8:
                return FOCUS_STATE_TRUE;
            case 9:
                return FOCUS_STATE_FALSE;
            case 10:
                return HEAD_IMG;
            case 11:
                return CHOOSE;
            case 0:
            default:
                return UNKNOWN;
        }
    }
}
